how to convert string to int or float in python